<template>
  <div id="app">
    <tab-bar>
      <tab-bar-item path="/home">
        <img slot="icon-nor" src="./assets/img/table_homepage.png" />
        <img slot="icon-sel" src="./assets/img/table_homepage1.png" />
        <div slot="title">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/category">
        <img slot="icon-nor" src="./assets/img/table_interaction.png" />
        <img slot="icon-sel" src="./assets/img/table_interaction1.png" />
        <div slot="title">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/cart">
        <img slot="icon-nor" src="./assets/img/table_interaction.png" />
        <img slot="icon-sel" src="./assets/img/table_interaction1.png" />
        <div slot="title">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <img slot="icon-nor" src="./assets/img/table_navigation.png" />
        <img slot="icon-sel" src="./assets/img/table_navigation1.png" />
        <div slot="title">我的</div>
      </tab-bar-item>
    </tab-bar>
    <router-view />
  </div>
</template>

<script>
import TabBar from "./components/tabbar/TabBar";
import TabBarItem from "./components/tabbar/TabBarItem";
export default {
  name: "App",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style></style>
